package com.fph.design;

/**
 * 懒汉模式(线程不安全)
 * @ClassName Singleton_01
 * @Description TODO
 * @Author fph
 * @Date 2024-08-06 11:27
 **/
public class Singleton_01 {

    private static Singleton_01 instance;


    private Singleton_01()
    {
    }

    public static Singleton_01 getInstance(){
        if(null == instance){
            instance = new Singleton_01();
        }
        return instance;
    }
}

